<?php if (!defined('THINK_PATH')) exit(); if($showtv == 'week'): ?><div class="common-block">
	<h2><?php echo modC('VIDEO_SHOW_TITLE','我要上电视','Video');?></h2>
	<div class="common-block-head">
		<ul>
			<li class="on"><a href="showtv/">周榜</a></li>
			<li><a href="showtv/">更多</a></li>
		</ul>
		<div class="wantbtn">
			<a href="<?php echo U('video/index/add');?>">上传视频</a>
		</div>
		<div class="pm">
			<h4>您视频的最高阳光值在本周排名</h4>
			<span>第38名</span>
		</div>
	</div>
	<div class="common-block-body">
		<ul class="video">
			<?php if(is_array($VideoContents)): $i = 0; $__LIST__ = $VideoContents;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if(($i) <= "3"): ?><li <?php if($i % 3 == 0): ?>style="margin-right:0"<?php endif; ?>>
				<div class="img">
					<a href="<?php echo U('Video/Index/videoContentDetail',array('id'=>$vo['id']));?>"><img src="<?php echo (getthumbimagebyid($vo["cover_id"],208,117)); ?>" alt="<?php echo ($vo["video"]["title"]); ?>" /></a>
					<span><?php echo ($i); ?></span>
				</div>
				<div class="text">
					<h2><a href="<?php echo U('Video/Index/videoContentDetail',array('id'=>$vo['id']));?>" title="<?php echo ($vo["title"]); ?>"><?php echo (getshortsp($vo["title"],11)); ?></a></h2>
					<div class="desc">
						<?php echo (getshortsp(text($vo["content"]),30)); ?>
					</div>
					<h4>来自树丛 : <a href="<?php echo U('Group/Index/group',array('id'=>$vo['group_id']));?>"><?php echo (get_group_name($vo["group_id"])); ?></a></h4>
					<ul>
						<li><i class="iconfont">&#xe638;</i> <?php echo ($vo["vote_count"]); ?> 投票</dd>
						<li><i class="iconfont">&#xe63a;</i> <?php echo ($vo["view_count"]); ?> 阳光值</dd>
					</ul>
				</div>
			</li>
			<?php else: ?>
			<li class="foot" <?php if($i % 6 == 0): ?>style="margin-right:0"<?php endif; ?>>
				<div class="img">
					<a href="<?php echo U('Video/Index/videoContentDetail',array('id'=>$vo['id']));?>">
					<img src="<?php echo (getthumbimagebyid($vo["cover_id"],208,117)); ?>"/>
					<h2><?php echo (getshortsp($vo["title"],30)); ?></h2>
					</a>						
				</div>
		  		<div class="meta">
					<ul>
						<li><i class="iconfont">&#xe638;</i> <?php echo ($vo["vote_count"]); ?></dd>
						<li><i class="iconfont">&#xe63a;</i> <?php echo ($vo["view_count"]); ?></dd>
					</ul>
				</div>
			</li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
		</ul>
	</div>
</div>
<?php elseif($showtv == 'month'): ?>
<div class="common-block" style="margin-top:10px;">
	<h2>顽瞳榜中榜</h2>
	<div class="common-block-head">
		<ul>
			<li class="on"><a href="showtv/">月榜</a></li>
			<li><a href="showtv/">总榜</a></li>
			<li><a href="showtv/">精华教程</a></li>
			<li><a href="showtv/">往期回顾</a></li>
		</ul>
	</div>
	<div class="common-block-body">
		<ul class="wtbzb">
			<?php if(is_array($VideoContents)): $i = 0; $__LIST__ = $VideoContents;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li <?php if($i % 3 == 0): ?>style="margin-right:0"<?php endif; ?>>
					<div class="img">
						<a href="<?php echo U('Video/Index/videoContentDetail',array('id'=>$vo['id']));?>"><img src="<?php echo (getthumbimagebyid($vo["cover_id"],208,117)); ?>"/>
										<h2><?php echo (getshortsp($vo["title"],30)); ?></h2>
									</a>
						<span><?php echo ($i); ?></span>
					</div>
					<div class="meta">
						<dl>
							<dd><i class="iconfont">&#xe607;</i>
								<?php echo ($vo["zang"]); ?>
							</dd>
							<dd><i class="iconfont">&#xe631;</i>
								<?php echo ($vo["reply_count"]); ?>
							</dd>
							<dd><i class="iconfont">&#xe63a;</i>
								<?php echo ($vo["view_count"]); ?>
							</dd>
						</dl>
					</div>
			</li><?php endforeach; endif; else: echo "" ;endif; ?>
		</ul>
	</div>
</div>
<?php else: ?>
<div class="common-block" style="margin-top:25px;">
	<h2 class="bline">最新上传</h2>
	<div class="common-block-head">
		<div class="pm">
			<a href="showtv/">更多</a>
		</div>
	</div>
	<div class="common-block-body">
		<div class="newvideo">
		<div class="prev" id="zxscPrev"></div>
		<div class="list" id="zxscList">
			<ul>
				<?php if(is_array($VideoContents)): $i = 0; $__LIST__ = $VideoContents;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
							<div class="img">
								<a href="<?php echo U('Video/Index/videoContentDetail',array('id'=>$vo['id']));?>"><img src="<?php echo (getthumbimagebyid($vo["cover_id"],208,117)); ?>"/></a>
							</div>
							<div class="text">
								<h2><a href="<?php echo U('Video/Index/videoContentDetail',array('id'=>$vo['id']));?>" title="<?php echo ($vo["title"]); ?>"><?php echo (getshortsp($vo["title"],11)); ?></a></h2>
								<h4>来自树丛 : <a href="<?php echo U('Group/Index/group',array('id'=>$vo['group_id']));?>" class="c_yellow"><?php echo (get_group_name($vo["group_id"])); ?></a></h4>
								<h4>用户 : <a ucard="<?php echo ($vo["user"]["id"]); ?>" href="<?php echo ($vo["user"]["space_url"]); ?>" class="c_green"><?php echo (htmlspecialchars($vo["user"]["nickname"])); ?></a></h4>
							</div>
							<div class="meta">
								<dl>
									<dd><i class="iconfont">&#xe638;</i>
										<?php echo ($vo["vote_count"]); ?>
									</dd>
									<dd><i class="iconfont">&#xe63a;</i>
										<?php echo ($vo["view_count"]); ?>
									</dd>
								</dl>
							</div>
						</li><?php endforeach; endif; else: echo "" ;endif; ?>
			</ul>
		</div>
		<div class="next" id="zxscNext"></div>
		</div>
	</div>
</div><?php endif; ?>